<div>
<?php


if(!empty($message)){
	echo '<div class="text3">'. $message .'</div>';
}
?>

<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="left" class='header' height="25px" > 
<a href="/" class="home" title="Home">&nbsp;Home</a><span class="mark">&nbsp;&raquo;&nbsp;</span> <span class="home">Update System parameter</span> 
</td>
</tr>
</tbody>
</table>
<br />

<table class="displayTable" width="100%">
	<!--
	<tr >
		<td colspan="2"><p class="text4">Update System parameter</p> </td>
		
	</tr>
	-->
	
	<tr>
		<th>Parameter Name</th>
		<th>Parameter Value</th>
		<th>Description</th>
		<th></th>
		
	</tr>
	<?$record=1;?>
	<?php foreach($params as $row) {?>
	<tr>
		<td width='30%' class='text5'><?php echo $row['name'];?></td>
		<td width='50%' class='text3'><input id='param_<?php echo $row['id'];?>' type='text' value='<?php echo $row['value'];?>' size='70'/></td>
		<td width="10%" style="text-align:center;">
			<p><a href="#" data-tooltip="sticky<?=$record?>"><?=$row['description']!=""?"View":""?></a></p>
		</td>
		<td width='10%' class='khung02' style="text-align:center;"><a class="button2" style="color:#ffffff; text-decoration:none;" href='javascript:submitUpdateParam(<?=$row['id']?>)'>Update</a></td>
	</tr>
	<?php
	$record++;
	}
	?>
</table>

<!-- for tooltip -->
<?if(isset($params) && $params):?>
	<div id="mystickytooltip" class="stickytooltip">
		<div style="padding:5px">
			<?$record=1;?>
			<?foreach($params as $row):?>
				<?if($row['description']!=""){?>
				<div id="sticky<?=$record?>" class="atip" style="text-align:left;">
					<?=$row['description']?>
				</div>
			<?
				}
				$record++;
			endforeach
			?>
		</div>
	</div>
<?php endif ?>
<!-- end for tooltip -->

</div>